"""
ProjectName:qq_tools_bot 
FileName:print_color.py 
IdeaName:PyCharm 
UserName:zhao
UserMail:2909552840@qq.com
UserHomepage:https://www.zywi.cn
CreationTime:2024/10/30 下午3:15  
"""

# 打印请求消息
from typing import Any


def print_red(*messages, sep=' ', end='\n', file=None):
    """
    打印红色消息
    :param messages:
    :param sep:
    :param end:
    :param file:
    :return:
    """
    # 将所有消息连接为一个字符串，使用逗号分隔
    combined_message = ', '.join(messages)
    print(f'\033[31m{combined_message}\033[0m', sep=sep, end=end, file=file)


def print_blue(*messages, sep=' ', end='\n', file=None):
    """
    打印蓝色消息
    :param messages:
    :param sep:
    :param end:
    :param file:
    :return:
    """
    # 将所有消息连接为一个字符串，使用逗号分隔
    combined_message = ', '.join(messages)
    print(f'\033[34m{combined_message}\033[0m', sep=sep, end=end, file=file)


def print_yellow(*messages, sep=' ', end='\n', file=None):
    """
    打印黄色消息
    :param messages:
    :param sep:
    :param end:
    :param file:
    :return:
    """
    # 将所有消息连接为一个字符串，使用逗号分隔
    combined_message = ', '.join(messages)
    print(f'\033[33m{combined_message}\033[0m', sep=sep, end=end, file=file)
